package com.yuncheng.spcyApi.service.impl;

import com.yuncheng.common.base.service.impl.BaseServiceImpl;
import com.yuncheng.spcyApi.entity.SpcyFgbzkType;
import com.yuncheng.spcyApi.mapper.SpcyFgbzkTypeMapper;
import com.yuncheng.spcyApi.service.ISpcyFgbzkTypeService;
import com.yuncheng.spcyApi.vo.common.FgbzkTreeVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SpcyFgbzkTypeServiceImpl extends BaseServiceImpl<SpcyFgbzkTypeMapper, SpcyFgbzkType> implements ISpcyFgbzkTypeService {

    @Resource
    private SpcyFgbzkTypeMapper spcyFgbzkTypeMapper;

    @Override
    public List<FgbzkTreeVo> selectAllType(String type) {
        return spcyFgbzkTypeMapper.selectAllType(type);
    }

    @Override
    public List<FgbzkTreeVo> selectTypeByParentId(String parentId) {
        return spcyFgbzkTypeMapper.selectTypeByParentId(parentId);
    }

    @Override
    public List<String> selectZltxwjByTypeId(String ftypeid) {
        return spcyFgbzkTypeMapper.selectZltxwjByTypeId(ftypeid);
    }

    @Override
    public List<String> selectChildTypeListById(String fparentid) {
        return spcyFgbzkTypeMapper.selectChildTypeListById(fparentid);
    }
}

